package com.commander.spring.cloud.controller;

import com.commander.spring.cloud.dao.user.UserEntity;
import com.commander.spring.cloud.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * description:
 * <p>
 * Date: 2020-06-05
 * <p>
 * Time: 15:07
 *
 * @author zhangxin
 */
@RestController
public class UserControllerImpl implements UserController{
	
	@Autowired
	private UserService userService;
	
	@Override
	public UserEntity getById(String id){
		return userService.get(id);
	}

}
